package com.yh.entity;

import lombok.Data;

import java.io.Serializable;

@Data
public class Users implements Serializable {
    private int id; //用户编号
    private String name;  //用户账号
    private String password; //用户密码
    private String telephone; //用户电话号码
    private String userName; //用户真实姓名
    private int isAdmin; //是否为管理员

    public Users() {
    }

    public Users(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public Users(String name, String password, String telephone, String userName) {
        this.name = name;
        this.password = password;
        this.telephone = telephone;
        this.userName = userName;
    }
}
